package com.zhentao.model.activity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName ad_activity
 */
@TableName(value ="ad_activity")
@Data
public class AdActivity implements Serializable {
    /**
     * 后台管理活动表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 开始时间
     */
    @TableField(value = "begin_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date beginTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endTime;

    /**
     * 活动标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 活动图片
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 活动内容
     */
    @TableField(value = "activity_content")
    private String activityContent;

    /**
     * 活动地点
     */
    @TableField(value = "activity_position")
    private String activityPosition;

    /**
     * 活动状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 活动发布时间
     */
    @TableField(value = "publish_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date publishTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
